package com.example.homeworkmanagement.service;

import com.example.homeworkmanagement.pojo.Majors;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.homeworkmanagement.vo.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 拒绝加班
 * @since 2025-05-25
 */
public interface MajorsService extends IService<Majors> {
    //单表增删改查
    ResultVO<List<Majors>> getMajorList();
    // 根据department查major
    ResultVO<List<Majors>> getMajorListByDepartment(String department);
    ResultVO<Majors> addMajor(Majors major);
    ResultVO<Majors> updateMajor(Majors major);
    ResultVO<Majors> deleteMajor(String major_id);
}
